package jp.co.sn.mml.pojo.tshelpd;


public class TshelpdId implements java.io.Serializable { 

	//テーブル名
	private String tabNm;
	//テーブル項目名
	private String tabItemNm;

	/** default constructor */
	public TshelpdId(){

	}

	/** full constructor */
	public TshelpdId(String tabNm,String tabItemNm){
		this.tabNm = tabNm;
		this.tabItemNm = tabItemNm;
	}

	//Property accessors
	public String getTabNm(){
		return this.tabNm;
	}

	public void setTabNm(String tabNm){
		this.tabNm=tabNm;
	}

	public String getTabItemNm(){
		return this.tabItemNm;
	}

	public void setTabItemNm(String tabItemNm){
		this.tabItemNm=tabItemNm;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TshelpdId))
			return false;

		TshelpdId castOther = (TshelpdId) other;

		return ((this.getTabNm() ==  castOther.getTabNm())
				||(this.getTabNm()!=null && castOther.getTabNm() !=null 
					&& castOther.getTabNm() !=null 
					&& this.getTabNm().equals(castOther.getTabNm())))
			&& ((this.getTabItemNm() ==  castOther.getTabItemNm())
				||(this.getTabItemNm()!=null && castOther.getTabItemNm() !=null 
					&& castOther.getTabItemNm() !=null 
					&& this.getTabItemNm().equals(castOther.getTabItemNm())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTabNm() == null ? 0 : this.getTabNm().hashCode());
		result = 37 * result
				+ (getTabItemNm() == null ? 0 : this.getTabItemNm().hashCode());
		return result;
	}

}